<?php
/**
 * Created by PhpStorm.
 * User: lyang
 * Date: 2016/12/31
 * Time: 13:03
 */



class Middleware
{
    #等级
    private $iRank = [];

    public function auth($data){
        if(isset($data["user_id"]) && $data["user_id"]>0 ){
            return 1;
        }
        YC::location(YC::get("ROOT")."/index.php/login");
        return 0;
    }

}